package com.young.test.daos;

import org.apache.log4j.Logger;

import com.young.test.domain.Person;

public class ImportDao2 {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(ImportDao2.class);
	
	private Person target;
	
	public void init(){
		logger.info("<-------------------------");
	}
	
	public Person getTarget() {
		return target;
	}

	public void setTarget(Person target) {
		this.target = target;
	}

	public void info(){
		logger.info("name is :"+target.getName());
		logger.info("age is :"+target.getAge());
	}
	
	public String toString(){
		
		return "ImprotDao2";
	}
	
}
